import { BaseMsgHandler } from "../../framework/BaseMsgHandler";
import { DebugHost } from "../DebugHost";
import { EMessageC2S } from "../../../common/EMessageC2S";
import { ClientMsg } from "../../framework/common/ClientMsg";
import { DebugClient } from "../DebugClient";
import { ELogLevel } from "../../framework/common/ELogLevel";
import { EMessageS2C } from "../../../common/EMessageS2C";

export class HandleC1004 extends BaseMsgHandler<DebugHost> {

    msgId: number = EMessageC2S.TransToOther;

    HandleMsg(msg: ClientMsg) {
        let client = msg.client as DebugClient;
        if (!client.isInPair) {
            client.logger.Log("无pair", ELogLevel.Warn);
            return;
        }
        let transData = msg.transData.data;
        client.pair.SendMsg(EMessageS2C.TransToOther, transData);
    }

}